// 页面操作权限
const PAGE_PERMISSION_CHECK = [
  {
    module: 'homePage',
    url: 'homePage',
    icon: 'HomeOutlined',
    permissList: [
      {
        permissName: 'pageView',
        userCampRole: ['*-Admin'],
        buRole: ['Admin'],
      }
    ]
  },
  {
    module: 'approval',
    url: 'approvalCenter',
    icon: 'AuditOutlined',
    permissList: [
      {
        permissName: 'pageView',
        userCampRole: ['*-Admin'],
        buRole: ['Admin']
      },
      {
        permissName: 'approval',
        userCampRole: ['*-Admin'],
        buRole: ['Admin']
      }
    ]
  },
  {
    module: 'search',
    icon: 'SearchOutlined',
    children: [
      {
        label: 'requestList',
        url: 'search/list',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['IR-Admin', 'SEM-Admin'],
            buRole: ['Admin',],
            moduleName: ['IR', 'SEM'],
          }
        ]
      },
      {
        label: 'sem',
        url: 'search/sem',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['SEM-Admin'],
            buRole: ['Admin', 'Tester', 'PRPD'],
            moduleName: ['SEM'],
          }
        ]
      },
      {
        label: 'ir',
        url: 'search/ir',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['IR-Admin'],
            buRole: ['Admin', 'Viewer', 'Tester', 'PRPD'],
            moduleName: ['IR'],
          }
        ]
      },
    ]
  },
  {
    module: 'bigSimulationFile',
    icon: 'FolderOutlined',
    children: [
      {
        label: 'requestList',
        url: '/bigSimulationFile/list',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['Big Simulation File-Admin'],
            buRole: ['Admin'],
            moduleName: ['Big Simulation File'],
          }
        ]
      },
      {
        label: 'summaryData',
        url: '/bigSimulationFile/summary',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['Big Simulation File-Admin'],
            buRole: ['Admin'],
            moduleName: ['Big Simulation File'],
          }
        ]
      },
    ]
  },
  {
    module: 'experimentalData',
    icon: 'ExperimentOutlined',
    children: [
      {
        label: 'requestList',
        url: '/experimentalData/list',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['Experimental Data-Admin'],
            buRole: ['Admin'],
            moduleName: ['Experimental Data'],
          }
        ]
      },
      {
        label: 'summaryData',
        url: '/experimentalData/summary',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['Experimental Data-Admin'],
            buRole: ['Admin'],
            moduleName: ['Experimental Data'],
          }
        ]
      },
    ]
  },
  {
    module: 'virtualSimulation',
    url: 'virtualSimulation',
    icon: 'DeploymentUnitOutlined',
    permissList: [
      {
        permissName: 'pageView',
        userCampRole: ['*-Admin'],
        buRole: ['Admin'],
      }
    ]
  },
  {
    module: 'synTouch',
    icon: 'BarChartOutlined',
    children: [
      {
        label: 'requestList',
        url: '/synTouch/list',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['SynTouch-Admin'],
            buRole: ['Admin', 'Tester', 'PRPD'],
            moduleName: ['SynTouch'],
          },
          {
            permissName: 'addAndDelete',
            userCampRole: ['SynTouch-Admin'],
            buRole: ['Admin', 'PRPD'],
            moduleName: ['SynTouch'],
          },
          {
            permissName: 'importTestData',
            userCampRole: ['SynTouch-Admin'],
            buRole: ['Tester', 'Admin'],
            moduleName: ['SynTouch'],
          }
        ]
      },
      {
        label: 'summaryData',
        url: '/synTouch/summary',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['SynTouch-Admin'],
            buRole: ['Admin'],
            moduleName: ['SynTouch'],
          }
        ]
      },
    ]
  },
  {
    module: 'masterData',
    icon: 'TableOutlined',
    children: [
      {
        label: 'template',
        url: 'masterData/template',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['*-Admin'],
            buRole: ['Admin']
          }
        ]
      },
      {
        label: 'item',
        url: 'masterData/item',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['*-Admin'],
            buRole: ['Admin']
          }
        ]
      },
      {
        label: 'tag',
        url: 'masterData/tag',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['*-Admin'],
            buRole: ['Admin']
          }
        ]
      },
      {
        label: 'module',
        url: 'masterData/module',
        permissList: [
          {
            permissName: 'pageView',
            userCampRole: ['*-Admin'],
            buRole: []
          }
        ]
      }
    ]
  },
  {
    module: "permissionManagement",
    url: 'permissionManagement',
    icon: 'LockOutlined',
    permissList: [
      {
        permissName: 'pageView',
        userCampRole: ['*-Admin'],
        buRole: ['Admin']
      }
    ]
  }
];

export {
  PAGE_PERMISSION_CHECK
};
